IsNumeric Function

Indicates whether the value passed is numeric.

Syntax

result = IsNumeric( arg )


Parameters

arg

Variable, value, or object whose data type is being investigated.



Notes

If the value passed to IsNumeric is a String that contains the string version of a number, then IsNumeric returns True. For example,

IsNumeric("3.1416")

returns True.

One usage of IsNumeric is to determine whether the user entered a string that can be converted to a number. For example,

IsNumeric( "1234.65e+10" ) //returns True
IsNumeric( "567e-10.5" ) //returns False

See Also

Boolean, Color, Double, Integer, Single, String, Variant data types.